package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbLadingBillValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import com.cloudlead.commonData.vo.TbBookingSpaceReceipt;

/**
 * TbLadingBill is a Codegen vo type
 */
@Label("提单表")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="tbBookingspaceReceipt", rootField="tbBookingspaceReceiptId")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbLadingBill")
public class TbLadingBill extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13154544329090L;    
    @Label("comments")
    @Size(max=256)
    private String comments;

    @Label("date")
    private DateTime date;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("提单编号")
    @Size(max=24)
    private String id;

    @Label("照片")
    @Size(max=45)
    private String image;

    @NotNull(groups={Create.class,Update.class})
    @Label("tbBookingspaceReceiptId")
    private TbBookingSpaceReceipt tbBookingspaceReceipt;

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public DateTime getDate() {
        return date;
    }

    public void setDate(DateTime date) {
        this.date = date;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public TbBookingSpaceReceipt getTbBookingspaceReceipt() {
        return tbBookingspaceReceipt;
    }

    public void setTbBookingspaceReceipt(TbBookingSpaceReceipt tbBookingspaceReceipt) {
        this.tbBookingspaceReceipt = tbBookingspaceReceipt;
    }

    public String toString() {
         return String.format("TbLadingBill { comments : %s,date : %s,flag : %s,id : %s,image : %s,tbBookingspaceReceipt : %s }",comments,date,flag,id,image,tbBookingspaceReceipt);
    }

}

